import org.qf.entity.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class T {
    public static void main(String[] args) {
        //1. 加载spring的核心配置文件
        ClassPathXmlApplicationContext context=new
                ClassPathXmlApplicationContext("test.xml");
//2.获取User对象
        User user = (User) context.getBean("user");



        System.out.println(user.getName()+"\t"+user.getAge()+"\t"+user.getAddress());
    }
}